package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 客户注册表
 * </p>
 *
 * @author LX
 * @since 2018-09-25
 */
@TableName("erp_register")
public class ErpRegister extends Model<ErpRegister> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户编码
     */
    @TableField("customer_code")
    private Integer customerCode;
    @TableField("real_name")
    private String realName;
    private String password;
    private String tell;
    private String email;
    private String weixin;
    private String qq;
    /**
     * 身份0企业1私家车
     */
    private Integer identify;
    /**
     * 注册时间
     */
    @TableField("reg_data")
    private Date regData;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(Integer customerCode) {
        this.customerCode = customerCode;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTell() {
        return tell;
    }

    public void setTell(String tell) {
        this.tell = tell;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getWeixin() {
        return weixin;
    }

    public void setWeixin(String weixin) {
        this.weixin = weixin;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public Integer getIdentify() {
        return identify;
    }

    public void setIdentify(Integer identify) {
        this.identify = identify;
    }

    public Date getRegData() {
        return regData;
    }

    public void setRegData(Date regData) {
        this.regData = regData;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpRegister{" +
        ", id=" + id +
        ", customerCode=" + customerCode +
        ", realName=" + realName +
        ", password=" + password +
        ", tell=" + tell +
        ", email=" + email +
        ", weixin=" + weixin +
        ", qq=" + qq +
        ", identify=" + identify +
        ", regData=" + regData +
        "}";
    }
}
